#include<iostream>
#include<cstdio>
#include<algorithm>
#include<vector>

using namespace std;

using LL = long long;
int main()
{
    LL n;
    cin >> n;

    vector<LL> d;
    for (LL i = 1; i * i <= n; i++)
        if (n % i == 0)
        {
            d.push_back(i);
            if (n / i != i) d.push_back(n / i);
        }
    int res = 0;
    for (auto a : d)
        for (auto b : d)
            for (auto c : d)
                if (a * b * c == n)
                    res++;
    cout << res << endl;
    return 0;
}